﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ODailyList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.ODailyList" %>


<form id="pagerForm" method="post" action="MacModel/ODailyList.aspx">
<input type="hidden" name="UserName" value="<%=UserName %>" />
<input type="hidden" name="SerialNumber" value="<%=SerialNumber %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="MacModel/ODailyList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    作业人员： 
                </td>
                <td>
                    <input name="UserName" type="text" value="<%=UserName %>"  />
                </td>
                <td>
                    项目名称： 
                </td>
                <td>
                   <input name="SerialNumber" type="text" value="<%=SerialNumber %>"  />
                </td>
                <td>
                    工位： 
                </td>
                <td>
                   <input name="GongWei" type="text" value="<%=GongWei %>"  />
                </td>
            </tr>
        </table>
        <div class="subBar">
            <ul>
                <li>
                    <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="MacModel/ODailyAdd.aspx" target="navTab" rel="ODailyAdd"  title="添加生产部日报表"><span>添加生产部日报表</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="MacModel/ODailyAdd.aspx?DailyCategory=1" target="navTab" rel="ODailyAdd"  title="添加质管部日报表"><span>添加质管部日报表</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeleteDaily&DailyId={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.修改))
              {%>
            <li><a class="edit" href="MacModel/ODailyEdit.aspx?DailyId={sid_user}" target="dialog" title="修改作业日报表" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="520" height="400" ><span>修改</span></a></li>
          <%} %>
        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="138">
        <thead>
            <tr  >                
                <th width="80">
                    作业人员(工号)
                </th>
                <th width="120">
                    日期
                </th>
                <th>
                    工位
                </th>
                <th width="150">
                    作业内容(代号)
                </th>
                <th width="120" align="center">
                    项目名称
                </th>
                <th width="80">
                    工时(分钟)
                </th>
                
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("DailyId") %>">
				<td><%# Eval("RealName") %>(<%# Eval("UserName") %>)</td>
				<td><%# Eval("WorkDate")%></td>
				<td><%# Eval("GongWei")%></td>
				<td><%# Eval("JobTitle")%>(<%# Eval("JobCode")%>)</td>
				<td><%# Eval("SerialNumber")%></td>
				<td><%# Eval("TaskTime")%></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
